<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-appUser-edit" th:object="${appUser}">
            <input id="appUserId" name="appUserId" th:field="*{appUserId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户微信昵称：</label>
                <div class="col-sm-8">
                    <input id="nickName" name="nickName" th:field="*{nickName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户头像（个人上传）：</label>
                <div class="col-sm-8">
                    <input id="headUrl" name="headUrl" th:field="*{headUrl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户私人昵称：</label>
                <div class="col-sm-8">
                    <input id="userNickName" name="userNickName" th:field="*{userNickName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">性别 0:女 1：男：</label>
                <div class="col-sm-8">
                    <input id="sex" name="sex" th:field="*{sex}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">所在城市：</label>
                <div class="col-sm-8">
                    <input id="city" name="city" th:field="*{city}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">所在省份：</label>
                <div class="col-sm-8">
                    <input id="province" name="province" th:field="*{province}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">所在国家：</label>
                <div class="col-sm-8">
                    <input id="country" name="country" th:field="*{country}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户头像(微信)：</label>
                <div class="col-sm-8">
                    <input id="headimgurl" name="headimgurl" th:field="*{headimgurl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户token：</label>
                <div class="col-sm-8">
                    <input id="userToken" name="userToken" th:field="*{userToken}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户电话：</label>
                <div class="col-sm-8">
                    <input id="userPhone" name="userPhone" th:field="*{userPhone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户登陆密码：</label>
                <div class="col-sm-8">
                    <input id="userPassword" name="userPassword" th:field="*{userPassword}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">上2级用户id：</label>
                <div class="col-sm-8">
                    <input id="topOneId" name="topOneId" th:field="*{topOneId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">上1级用户id：</label>
                <div class="col-sm-8">
                    <input id="topTwoId" name="topTwoId" th:field="*{topTwoId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">推荐人id:SELF：自己：</label>
                <div class="col-sm-8">
                    <input id="referUser" name="referUser" th:field="*{referUser}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户状态NORMAL：正常 LOCKING:锁定：</label>
                <div class="col-sm-8">
                    <input id="userStatus" name="userStatus" th:field="*{userStatus}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">经度：</label>
                <div class="col-sm-8">
                    <input id="userLongitude" name="userLongitude" th:field="*{userLongitude}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">纬度：</label>
                <div class="col-sm-8">
                    <input id="userLatitude" name="userLatitude" th:field="*{userLatitude}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">推送通道：</label>
                <div class="col-sm-8">
                    <input id="registrationId" name="registrationId" th:field="*{registrationId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">最后ip地址：</label>
                <div class="col-sm-8">
                    <input id="ip" name="ip" th:field="*{ip}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">设备唯一识别码：</label>
                <div class="col-sm-8">
                    <input id="deviceId" name="deviceId" th:field="*{deviceId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">设备名称：</label>
                <div class="col-sm-8">
                    <input id="deviceName" name="deviceName" th:field="*{deviceName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <input id="ctime" name="ctime" th:field="*{ctime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">有效范围：</label>
                <div class="col-sm-8">
                    <input id="effectiveRange" name="effectiveRange" th:field="*{effectiveRange}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户邀请码：</label>
                <div class="col-sm-8">
                    <input id="invitationCode" name="invitationCode" th:field="*{invitationCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户支付宝账户：</label>
                <div class="col-sm-8">
                    <input id="alipayNo" name="alipayNo" th:field="*{alipayNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户真实姓名 ：</label>
                <div class="col-sm-8">
                    <input id="relaName" name="relaName" th:field="*{relaName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <input id="lastLoginTime" name="lastLoginTime" th:field="*{lastLoginTime}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "user/appUser"
		$("#form-appUser-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-appUser-edit').serialize());
			}
		});
	</script>
</body>
</html>
